package com.easy.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @author 风亦未止
 * @date 2021/9/22 16:26
 */
@ApiModel(value = "返回给前端小纸条对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NoteVO {

    @ApiModelProperty(value="小纸条id")
    private Long id;

    @ApiModelProperty(value="发布者的openid")
    private String openid;

    @ApiModelProperty(value="发布者头像地址")
    private String avatarUrl;

    @ApiModelProperty(value="评论列表")
    private List<NoteComments> commentsList;

    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @ApiModelProperty(value="小纸条文字内容")
    private String desc;

    @ApiModelProperty(value="小纸条图片列表")
    private List<NoteImgs> noteImgs;

    @ApiModelProperty(value="喜欢列表")
    private List<NoteLike> noteLikes;

    @ApiModelProperty(value="发布者昵名")
    private String nickName;
}
